<?php
/**
 * Project: Recipe
 * File: SetDealModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-4-21
 * Time: 下午5:56
 */

class SetDealModel extends RelationModel{

	protected $_validate = array(
		array('name', 'require', '份量单位名称不能为空', 1, 'regex', 3),
		array('sort', 'number', '排序必须为数字', 1, 'regex', 3),
	);

//		protected $_link = array(
//				'FoodDeal'=>array(
//				'mapping_type'=>HAS_MANY,
//				'mapping_name'=>'fooddeal',
//				'class_name'=>'FoodDeal',
//				'foreign_key'=>'unit',
//			//	'mapping_fields'=>'unit,deal',
//				),
//		);

}